package com.qhgrain.api.menurolepermission.entity;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="base_role")
public class Role {

	@Id
	private String id;/*角色ID*/
	private String name;/*角色名称*/
	/**
	 * 角色编码，唯一性
	 */
	private String roleCode;
	
	
	/**
	 * 角色类型
	 * 默认0系统角色，1业务角色，2特殊角色
	 * */
	private String type;
	/**
	 * 角色状态
	 * 默认0正常，1停用
	 * */
	private String status;
	private String createDate;/*创建时间*/
	
	public Role(){
		
	}

	public Role(String id, String name, String type, String status,
			String roleCode,String createDate) {
		super();
		this.id = id;
		this.name = name;
		this.type = type;
		this.status = status;
		this.roleCode = roleCode;
		this.createDate = createDate;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	
	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	
}
